import { createApp } from 'vue';
import App from './App.vue';
import router from './router';

// import axiosInstance from './js/axiosself';

//Elementui
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';


import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
//element图标

const app = createApp(App);

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }

// 挂载全局变量和方法
// app.config.globalProperties.$axios = axiosInstance;

// app.config.globalProperties.$message = ElMessage;

// 使用路由
// 使用 Element Plus


app.use(ElementPlus, {
  locale: zhCn,
})
// app.use(axiosInstance);
app.use(router);
// app.use(ElMessage);

// 挂载实例
app.mount('#app');

